package p2p.logic.log;


public class Logger {
	
	private static ILogger iLog;
	private static boolean isDebug;
	
	public static void setILogger(ILogger _iLog){
		iLog = _iLog;
	}
	
	public static void consoleLog(String log){
		iLog.log(log);
	}
	
	public static void setIsDebug(boolean _isDebug){
		isDebug = _isDebug;
	}
	
	public static void debug(String log){
		if (isDebug)
			iLog.log(log);
	}
}
